package br.com.felix.fwt.servlet;

import java.util.Locale;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import br.com.felix.fwt.ui.Form;


/**
 * The Class FwtContext contains references to objects associated with the current processing request.
 * This global access is to allow advanced features of the framework.
 */
public class FwtContext {

	/** The current processing request. */
	public HttpServletRequest request;
	
	/** The response of the current processing request. */
	public HttpServletResponse response;
	
	/** The form associated with the current processing request. */
	public Form form;
	
	/** The locale used by the user*/
	public Locale locale;
	
	/**
	 * Instantiates a new fwt context.
	 */
	public FwtContext(){}
	
	
	/**
	 * Instantiates a new fwt context.
	 * 
	 * @param req the req
	 * @param resp the resp
	 */
	public FwtContext(HttpServletRequest req, HttpServletResponse resp, Locale locale){
		this.request = req;
		this.response = resp;
		this.locale = locale;
	}
}
